@mixin scroll-bar {
  $--scrollbar-thumb-background: #b4bccc;
  $--scrollbar-track-background: #fff;

  &::-webkit-scrollbar {
    z-index: 11;
    width: 6px;

    &:horizontal {
      height: 6px;
    }

    &-thumb {
      border-radius: 5px;
      width: 6px;
      background: $--scrollbar-thumb-background;
    }

    &-corner {
      background: $--scrollbar-track-background;
    }

    &-track {
      background: $--scrollbar-track-background;

      &-piece {
        background: $--scrollbar-track-background;
        width: 6px;
      }
    }
  }
}

.z-form-template--inline {
  .z-form {
    .z-form__object-0 {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      //gap: 10px 0 ;
    }

    .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item {
      margin-bottom: 0;
    }

    .z-form__prop {
      margin-bottom: 10px;
    }
  }
}

.z-crud-table--no-actions {
  > div {
    > .z-search-table {
      > .z-crud-table__actions {
        display: none;
      }
    }
  }
}


.z-crud-table--no-search {
  > div {
    > .z-search-table {
      > .z-search-table__form {
        display: none;
      }
    }
  }
}

.z-crud-table--no-page {
  .z-table__page {
    display: none;
  }
}

.z-crud-table--no-def-action {
  .z-crud-table__action-def {
    display: none;
  }
}

.z-static-dropdown {
  display: block ;
  position: relative;
}

.z-tabs {
  sp-tab {
    padding: 10px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color ease .5s;
    &:hover {
      border-bottom-color: var(--el-color-primary);
    }
    &[selected] {
      border-bottom-color: var(--el-color-primary);
    }
  }
}

.z-tabs-c {
  --spectrum-tabs-rule-color: #efefef;
  --spectrum-tabs-textonly-tabitem-selection-indicator-background-color-selected: var(--el-color-primary);
  --spectrum-tabs-quiet-textonly-divider-background-color: var(--el-color-primary);
  --spectrum-tabs-quiet-textonly-tabitem-height: 50px;
  --spectrum-tabs-quiet-textonly-divider-size: 2px;
  sp-tab {
    padding-left: 10px;
    padding-right: 10px;
  }
  &::part(listcon) {
    width: 100%;
    //overflow: auto;
  }
  &::part(selection-indicator) {
    transition: transform ease .3s;
    //bottom: 0;
    //height: calc(var(--spectrum-tabs-quiet-textonly-divider-size) );
  }
  &::part(listwrap) {
    //@include scroll-bar();
    overflow: auto;
  }
}

.z-tree-table--def {
  .z-search-table__content {
    display: flex;
    align-items: flex-start;
    > .z-table {
      flex: 1;
    }
    .tree-table__menu {
      width: 210px;
      box-sizing: border-box;
      padding-right: 10px;
      padding-top: 5px;
    }
  }
}
